package com.liangzhong.model.court
{
	import com.liangzhong.model.court.vo.CourtInfoVo;
	
	import flash.utils.ByteArray;

	/**
	 *球场 
	 * @author Administrator
	 * 
	 */	
	public class CourtDataManager
	{
		private var _courtInfoVo:CourtInfoVo;
		public function CourtDataManager()
		{
		}
		/**
		 *解析球场数据 
		 * @param $obj
		 * 
		 */
		public function analyaisCourtInfo($obj:Object):void
		{
			if(_courtInfoVo == null)_courtInfoVo = new CourtInfoVo();
			_courtInfoVo.analysis($obj.ballpark );
		}

		
		/**
		 * 
		 */
		public function get courtInfoVo():CourtInfoVo
		{
			return _courtInfoVo;
		}

		/**
		 *球场升级 
		 * 
		 */
		public function courtUp(buffer:ByteArray):void
		{
			_courtInfoVo.courtUp(buffer);
		}
	}
}